﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - IVBlog</title>
    <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="~/css/site.css" />
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.9.1/font/bootstrap-icons.css">
    <link href="~/aplayer/APlayer.min.css" rel="stylesheet" />
    <!-- 看板娘相关 -->
    <link href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="~/live2d/assets/waifu.min.css" rel="stylesheet" />
    <!-- 浏览器标签上显示的图标 -->
    <link rel="icon" type="image/ico" href="~/img/IV.ico">
    <style>
        body {
            /* 背景图片URL 可使用随机图片API
            background-image: url("https://bu.dusays.com/2022/06/04/629b0a2a89425.png");*/
            /*background-image: url("https://cdn.seovx.com/d/?mom=302");*/            
            /*background-image: url("https://www.dmoe.cc/random.php");*/
            /*background-image:url("https://api.ixiaowai.cn/api/api.php");*/
            /*background-size: cover;*/
        }

        body .container {
            background: rgba(255,255,255,0.85);
        }
        .logo_img {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            border: 2px solid #ffffff;
            margin-bottom: 15px;
        }
        .head_logo_div {
            width: 8%;
            float: left;
        }
        .search_box {
            width: 1100px;
            margin: 30px auto 20px auto;
            display: none;
        }

        .search {
            width: 500px;
            margin: 0 auto;
            height: 41px;
        }

        .search_form {
            position: relative;
        }

        .search_text {
            width: 400px;
            height: 38px;
            position: absolute;
            left: 0;
            border-radius: 4px;
            text-indent: 1em;
            box-shadow: 0 1px 3px #ddd;
            border: 1px #fff solid;
            -webkit-box-shadow: 0 1px 3px #ddd;
        }

        .search_btn {
            box-shadow: 0 1px 3px #ddd;
            border: 1px #fff solid;
            -webkit-box-shadow: 0 1px 3px #ddd;
            width: 90px;
            height: 38px;
            position: absolute;
            right: 0;
            background: #FFF;
            border-radius: 4px;
            color: #333;
        }

        .search_btn:hover {
            cursor: pointer;
        }
        .dropdown-menu li:hover{
            background-color: #ddd;
        }
        .dropdown:hover > .dropdown-menu {
            display: block;
        }
    </style>
    <script>
        // 音乐设置
        let meting_music_api = "https://api.injahow.cn/meting/"; // meting api //https://api.injahow.cn/meting/ //https://api.mizore.cn/meting/api.php
        let music_server = "netease"; // 音乐服务：网易云 netease 参见 meting api支持的服务
        let music_type = "playlist"; // 歌曲类型：歌单playlist 单首歌曲 song  专辑 album
        let music_id = "7714675980"; // 歌单ID或歌曲ID或者专辑ID 20173709 29732992 2303939525 595253072 7714675980
        let music_order = "random"; // 音频循环顺序, 顺序播放： 'list', 随机播放：'random'
        let music_mini = false; // mini模式 吸底模式开启后此选项实效 true / false
        let music_fixed = true; // 吸底模式
        let music_volume = 0.7; // 默认音量
        let music_autoplay = false; // 自动播放
        let music_loop = "all"; // 音频循环播放, 可选值: 'all', 'one', 'none' ，分别为全部循环，单曲循环，不循环
    </script>
</head>
<body>
    <header class="sticky-top">
        <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
            <div class="container">
                <div class="head_logo_div">
                    <img class="logo_img" src="~/img/IV.png" />
                </div>
                <a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">IV的小茶社</a>
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarSupportedContent"
                        aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse">
                    <ul class="navbar-nav flex-grow-1">
                        <li class="nav-item">
                            <a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Index">
                                <i class="bi bi-house-door"></i>&nbsp;首页
                            </a>
                        </li>
                        <li class="nav-item dropdown">
                            <a class="nav-link text-dark" id="dLabel" data-toggle="dropdown"
                               role="button" aria-haspopup="true" aria-expanded="false"
                               asp-area="" asp-controller="Home" asp-action="Privacy">
                                <i class="bi bi-journal-bookmark"></i>&nbsp;笔记
                            </a>
                            <ul class="dropdown-menu" aria-labelledby="dLabel">
                                <i></i>
                                @if(TempData["Category"]!=null){
                                    <partial name="~/Views/Home/_Type.cshtml" model="@TempData["Category"]" />
                                }                               
                            </ul>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Dynamic">
                                <i class="bi bi-chat-heart"></i>&nbsp;闲言碎语
                            </a>
                        </li>
                        <li class="nav-item dropdown">
                            <a class="nav-link text-dark a-menu" id="dLabel" data-toggle="dropdown"
                               role="button" aria-haspopup="true" aria-expanded="false"
                               asp-area="" asp-controller="" asp-action="">
                                <i class="bi bi-box2-heart"></i>&nbsp;关于我
                            </a>
                            <ul class="dropdown-menu" aria-labelledby="dLabel">
                                <i></i>
                                <li><a asp-controller="Personal" asp-action="Index" target="_blank" class="btn"><i class="bi bi-house-fill"></i>&nbsp;个人导航页</a></li>
                                @*<li><a href="#" target="_blank" class="btn"><i class="bi bi-chat-dots-fill"></i>&nbsp;QQ</a></li>*@
                                <li>
                                    <a href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=tYeChIOMhYOMh4X1xMSb1trY" target="_blank" class="btn"><i class="bi bi-envelope-fill"></i>&nbsp;邮箱</a>
                                </li>
                                <li>
                                    <a href="https://qm.qq.com/cgi-bin/qm/qr?k=1aAGwZLEMBilz0t9_PAD5ICXOzTwn9Nh&jump_from=webapi&authKey=Rf5kDtL7I/lgC8Jv4K/AR+hYGgbK/FlmUFEltaGUYo75KG7WRNTHlpnKpU2JOMGl" target="_blank" class="btn"><i class="bi bi-collection-fill"></i>&nbsp;破群</a>
                                </li>
                                <li><a href="https://space.bilibili.com/32282573" target="_blank" class="btn"><img src="https://www.bilibili.com/favicon.ico" style="width:16px;height:16px;" />&nbsp;小破站</a></li>
                            </ul>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link text-dark" asp-area="" asp-controller="Personal" asp-action="Login">
                                <i class="bi bi-gear"></i>&nbsp;后台管理
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="header_search">
                    <a href="javascript:void(0);" class="header_search_btn">
                        @*<img src="~/img/search.png">*@
                        @*<span class="glyphicon glyphicon-search" aria-hidden="true"></span>*@
                        <i class="bi bi-search" style="font-size: 30px;"></i>
                    </a>
                </div>
            </div>

        </nav>
    </header>
    <div class="search_box">
        <div class="search">

            <form name="searchform" class="search_form" method="post" action="~/Home/Search" target="_self">
                <input type="text" class="search_text" id="keyboard" name="keyboard" placeholder="输入关键字点击搜索文章">
                <input type="hidden" name="tbname" value="news">
                <input type="hidden" name="show" value="title,smalltext">
                <input type="hidden" name="tempid" value="1">
                <input type="hidden" name="classid" value="1,4,9">
                <input type="submit" class="search_btn" value="搜索一下">
            </form>

        </div>
    </div>
    <div id="dynamic-background" style="width: 100%; height: 100%; position: fixed;z-index: -1;">
        <script>
            window.addEventListener("load", function (e) {
                document.getElementById("dynamic-background").innerHTML = '<iframe src="https://api.r10086.com/PPT/PPT.php?PPT=原神" width="100%" height="100%" style="border: 0;"></iframe>';
            });
        </script>
    </div>
    <div class="container">
        <main role="main" class="pb-3">
            @RenderBody()
        </main>
    </div>
    <!-- aplayer inner -->
    <div id="aplayer-inner" class="aplayer"></div>
    <!-- end aplayer inner -->
    <!-- 底部信息 -->
    <footer class="border-top footer text-muted">
        <div class="container">
            <div class="row">
                <div class="col-md-6">
                    &copy;备案号：<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">湘ICP备2022023302号-1</a>
                    &nbsp;&nbsp;
                    <span>IV的小茶社 - <a asp-area="" asp-controller="Home" asp-action="Privacy">看看有什么</a></span>
                </div>
                <div class="col-md-6 text-right">
                    <span class="right_div">服务支持：<a href="https://www.aliyun.com/" target="_blank">阿里云</a></span>
                </div>
            </div>
        </div>
    </footer>


    <script src="~/lib/jquery/dist/jquery.min.js"></script>
    <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script src="~/js/site.js" asp-append-version="true"></script>
    <!-- aplayer 插件相关 -->
    <div id="aplayer-fixed" class="aplayer"></div>
    @*<script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>*@
    <script src="~/aplayer/APlayer.min.js"></script>
    <script src="~/meting/Meting.min.js"></script>
    @*看板娘相关*@
    @*<script src="https://cdn.jsdelivr.net/gh/stevenjoezhang/live2d-widget/autoload.js"></script>*@
    <script src="~/live2d-widget/lib/L2Dwidget.min.js"></script>
    <script src="~/live2d-widget/lib/L2Dwidget.0.min.js"></script>
    @*播放器相关*@
    <script src="~/static/main.js"></script>

    @RenderSection("Scripts", required: false)
    
    <script>
        $(function () {
            header_search_btn();
            //header_Type();
        });
        //头部搜索按钮
        function header_search_btn() {
            $(".header_search_btn").click(function () {
                $(".search_box").slideToggle(300, function () {
                    if ($(".header_nav_small_btn").css("display") == "block") {
                        if ($(".header_nav").css("display") == "block") {
                            $(".header_nav_small_btn").removeClass("click_small_btn");
                            $(".header_nav").hide(350);
                        }
                    }
                });
            });
        };
        function header_Type() {
            $.ajax({
                type: 'post',
                url: '../Home/Type',
                success: function () {
                    //layer.msg("修改状态成功", { icon: 1 });
                    //setTimeout(function () {
                    //    window.location.reload();
                    //}, 2000);
                },
                error: function () {
                    //layer.msg("修改失败", { icon: 2 });
                }
            });
        };   
    </script>
    <!-- waifu-tips.js 依赖 JQuery 库 -->
    <!--<script src="assets/jquery.min.js?v=3.3.1"></script>-->
    <!-- 实现拖动效果，需引入 JQuery UI -->
    <script src="~/live2d/assets/jquery-ui.min.js"></script>
    <script src="~/live2d/assets/live2d.min.js"></script>
    <script src="~/live2d/assets/waifu-tips.js"></script>
    <!--看板娘相关*-->
    <link href="~/live2d-banner/css/pio.css" rel="stylesheet" />
    <script src="~/live2d-banner/js/l2d.js"></script>
    <script src="~/live2d-banner/js/pio.js"></script>
    <div class="pio-container right">
        <div class="pio-action"></div>
        <canvas id="pio" width="200" height="250"></canvas>
    </div>
    <script>
        var pio = new Paul_Pio({
            "mode": "fixed",
            "tips": true,
            "hidden": true,
            "content": {
                "welcome": ["欢迎来到IV的网站！", "博主每天都有些折腾记录，欢迎前往他的小窝阅读~"],
            },
            "model": [
                "https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json",
                "https://unpkg.com/live2d-widget-model-bilibili@1.0.1/assets/22/model.default.json",
                "https://unpkg.com/live2d-widget-model-bilibili@1.0.1/assets/33/model.default.json",
                "https://unpkg.com/live2d-widget-model-haru@1.0.5/01/assets/haru01.model.json",
                "https://unpkg.com/live2d-widget-model-haru@1.0.5/02/assets/haru02.model.json"
            ]
        });
    </script>

    <!--<script type="text/javascript">
            /* 把 autoload.js 内容直接内置 */
            $('body').append('<div class="waifu"><div class="waifu-tips"></div><canvas id="live2d" class="live2d"></canvas><div class="waifu-tool"><span class="fui-home"></span> <span class="fui-chat"></span> <span class="fui-eye"></span> <span class="fui-user"></span> <span class="fui-photo"></span> <span class="fui-info-circle"></span> <span class="fui-cross"></span></div></div>');
            $.ajax({ url: '../live2d/assets/waifu-tips.js', dataType: "script", cache: true, async: false });
            $.ajax({ url: '../live2d/assets/live2d.min.js', dataType: "script", cache: true, async: false });

            /* 可直接修改部分参数 */
            live2d_settings['hitokotoAPI'] = 'jinrishici.com'; // 一言 API
            live2d_settings['modelAPI'] = '//live2d.fghrsh.net/api/';
            /*live2d_settings['modelAPI'] = '//api3.fghrsh.net/live2d/';*/
            live2d_settings['modelId'] = 6;                    // 默认模型 ID
            live2d_settings['modelTexturesId'] = 11;            // 默认材质 ID
            live2d_settings['modelStorage'] = false;           // 不储存模型 ID
            live2d_settings['canCloseLive2d'] = true;         // 隐藏 关闭看板娘 按钮
            live2d_settings['canTurnToHomePage'] = true;      // 隐藏 返回首页 按钮
            live2d_settings['waifuSize'] = '280x250';          // 看板娘大小
            live2d_settings['waifuTipsSize'] = '250x70';      // 提示框大小
            live2d_settings['waifuFontSize'] = '16px';         // 提示框字体
            live2d_settings['waifuEdgeSide'] = 'right:30';     // 看板娘贴边方向
            live2d_settings['waifuToolFont'] = '16px';         // 工具栏字体
            live2d_settings['waifuToolLine'] = '25px';         // 工具栏行高
            live2d_settings['waifuToolTop'] = '0px';         // 工具栏顶部边距
            live2d_settings['waifuDraggable'] = 'unlimited';      // 拖拽样式
            live2d_settings['waifuDraggableRevert'] = true;
            /* 内置 waifu-tips.json */
            initModel({
                "waifu": {
                    "console_open_msg": ["哈哈，你打开了控制台，是想要看看我的秘密吗？"],
                    "copy_message": ["你都复制了些什么呀，转载要记得加上出处哦"],
                    "screenshot_message": ["照好了嘛，是不是很可爱呢？"],
                    "hidden_message": ["我们还能再见面的吧…"],
                    "load_rand_textures": ["我还没有其他衣服呢", "我的新衣服好看嘛"],
                    "hour_tips": {
                        "t5-7": ["早上好！一日之计在于晨，美好的一天就要开始了"],
                        "t7-11": ["上午好！工作顺利嘛，不要久坐，多起来走动走动哦！"],
                        "t11-14": ["中午了，工作了一个上午，现在是午餐时间！"],
                        "t14-17": ["午后很容易犯困呢，今天的运动目标完成了吗？"],
                        "t17-19": ["傍晚了！窗外夕阳的景色很美丽呢，最美不过夕阳红~"],
                        "t19-21": ["晚上好，今天过得怎么样？"],
                        "t21-23": ["已经这么晚了呀，早点休息吧，晚安~"],
                        "t23-5": ["你是夜猫子呀？这么晚还不睡觉，明天起的来嘛"],
                        "default": ["嗨~ 快来逗我玩吧！"]
                    },
                    "referrer_message": {
                        "localhost": ["欢迎阅读<span style=\"color:#0099cc;\">『", "』</span>", " - "],
                        "baidu": ["Hello! 来自 百度搜索 的朋友<br>你是搜索 <span style=\"color:#0099cc;\">", "</span> 找到的我吗？"],
                        "so": ["Hello! 来自 360搜索 的朋友<br>你是搜索 <span style=\"color:#0099cc;\">", "</span> 找到的我吗？"],
                        "google": ["Hello! 来自 谷歌搜索 的朋友<br>欢迎阅读<span style=\"color:#0099cc;\">『", "』</span>", " - "],
                        "default": ["Hello! 来自 <span style=\"color:#0099cc;\">", "</span> 的朋友"],
                        "none": ["欢迎阅读<span style=\"color:#0099cc;\">『", "』</span>", " - "]
                    },
                    "referrer_hostname": {
                        "example.com": ["示例网站"],
                        "www.fghrsh.net": ["FGHRSH 的博客"]
                    },
                    "model_message": {
                        "1": ["来自 Potion Maker 的 Pio 酱 ~"],
                        "2": ["来自 Potion Maker 的 Tia 酱 ~"]
                    },
                    "hitokoto_api_message": {
                        "lwl12.com": ["这句一言来自 <span style=\"color:#0099cc;\">『{source}』</span>", "，是 <span style=\"color:#0099cc;\">{creator}</span> 投稿的", "。"],
                        "fghrsh.net": ["这句一言出处是 <span style=\"color:#0099cc;\">『{source}』</span>，是 <span style=\"color:#0099cc;\">FGHRSH</span> 在 {date} 收藏的！"],
                        "jinrishici.com": ["这句诗词出自 <span style=\"color:#0099cc;\">《{title}》</span>，是 {dynasty}诗人 {author} 创作的！"],
                        "hitokoto.cn": ["这句一言来自 <span style=\"color:#0099cc;\">『{source}』</span>，是 <span style=\"color:#0099cc;\">{creator}</span> 在 hitokoto.cn 投稿的。"]
                    }
                },
                "mouseover": [
                    { "selector": ".container a[href^='http']", "text": ["要看看 <span style=\"color:#0099cc;\">{text}</span> 么？"] },
                    { "selector": ".fui-home", "text": ["点击前往首页，想回到上一页可以使用浏览器的后退功能哦"] },
                    { "selector": ".fui-chat", "text": ["一言一语，一颦一笑。一字一句，一颗赛艇。"] },
                    { "selector": ".fui-eye", "text": ["嗯··· 要切换 看板娘 吗？"] },
                    { "selector": ".fui-user", "text": ["喜欢换装 Play 吗？"] },
                    { "selector": ".fui-photo", "text": ["要拍张纪念照片吗？"] },
                    { "selector": ".fui-info-circle", "text": ["这里有关于我的信息呢"] },
                    { "selector": ".fui-cross", "text": ["你不喜欢我了吗..."] },
                    { "selector": "#tor_show", "text": ["翻页比较麻烦吗，点击可以显示这篇文章的目录呢"] },
                    { "selector": "#comment_go", "text": ["想要去评论些什么吗？"] },
                    { "selector": "#night_mode", "text": ["深夜时要爱护眼睛呀"] },
                    { "selector": "#qrcode", "text": ["手机扫一下就能继续看，很方便呢"] },
                    { "selector": ".comment_reply", "text": ["要吐槽些什么呢"] },
                    { "selector": "#back-to-top", "text": ["回到开始的地方吧"] },
                    { "selector": "#author", "text": ["该怎么称呼你呢"] },
                    { "selector": "#mail", "text": ["留下你的邮箱，不然就是无头像人士了"] },
                    { "selector": "#url", "text": ["你的家在哪里呢，好让我去参观参观"] },
                    { "selector": "#textarea", "text": ["认真填写哦，垃圾评论是禁止事项"] },
                    { "selector": ".OwO-logo", "text": ["要插入一个表情吗"] },
                    { "selector": "#csubmit", "text": ["要[提交]^(Commit)了吗，首次评论需要审核，请耐心等待~"] },
                    { "selector": ".ImageBox", "text": ["点击图片可以放大呢"] },
                    { "selector": "input[name=s]", "text": ["找不到想看的内容？搜索看看吧"] },
                    { "selector": ".previous", "text": ["去上一页看看吧"] },
                    { "selector": ".next", "text": ["去下一页看看吧"] },
                    { "selector": ".dropdown-toggle", "text": ["这里是菜单"] },
                    { "selector": "c-player a.play-icon", "text": ["想要听点音乐吗"] },
                    { "selector": "c-player div.time", "text": ["在这里可以调整<span style=\"color:#0099cc;\">播放进度</span>呢"] },
                    { "selector": "c-player div.volume", "text": ["在这里可以调整<span style=\"color:#0099cc;\">音量</span>呢"] },
                    { "selector": "c-player div.list-button", "text": ["<span style=\"color:#0099cc;\">播放列表</span>里都有什么呢"] },
                    { "selector": "c-player div.lyric-button", "text": ["有<span style=\"color:#0099cc;\">歌词</span>的话就能跟着一起唱呢"] },
                    { "selector": ".waifu #live2d", "text": ["干嘛呢你，快把手拿开", "鼠…鼠标放错地方了！"] }
                ],
                "click": [
                    {
                        "selector": ".waifu #live2d",
                        "text": [
                            "是…是不小心碰到了吧",
                            "萝莉控是什么呀",
                            "你看到我的小熊了吗",
                            "再摸的话我可要报警了！⌇●﹏●⌇",
                            "110吗，这里有个变态一直在摸我(ó﹏ò｡)"
                        ]
                    }
                ],
                "seasons": [
                    { "date": "01/01", "text": ["<span style=\"color:#0099cc;\">元旦</span>了呢，新的一年又开始了，今年是{year}年~"] },
                    { "date": "02/14", "text": ["又是一年<span style=\"color:#0099cc;\">情人节</span>，{year}年找到对象了嘛~"] },
                    { "date": "03/08", "text": ["今天是<span style=\"color:#0099cc;\">妇女节</span>！"] },
                    { "date": "03/12", "text": ["今天是<span style=\"color:#0099cc;\">植树节</span>，要保护环境呀"] },
                    { "date": "04/01", "text": ["悄悄告诉你一个秘密~<span style=\"background-color:#34495e;\">今天是愚人节，不要被骗了哦~</span>"] },
                    { "date": "05/01", "text": ["今天是<span style=\"color:#0099cc;\">五一劳动节</span>，计划好假期去哪里了吗~"] },
                    { "date": "06/01", "text": ["<span style=\"color:#0099cc;\">儿童节</span>了呢，快活的时光总是短暂，要是永远长不大该多好啊…"] },
                    { "date": "09/03", "text": ["<span style=\"color:#0099cc;\">中国人民抗日战争胜利纪念日</span>，铭记历史、缅怀先烈、珍爱和平、开创未来。"] },
                    { "date": "09/10", "text": ["<span style=\"color:#0099cc;\">教师节</span>，在学校要给老师问声好呀~"] },
                    { "date": "10/01", "text": ["<span style=\"color:#0099cc;\">国庆节</span>，新中国已经成立100多年了呢"] },
                    { "date": "11/05-11/12", "text": ["今年的<span style=\"color:#0099cc;\">双十一</span>是和谁一起过的呢~"] },
                    { "date": "12/20-12/31", "text": ["这几天是<span style=\"color:#0099cc;\">圣诞节</span>，主人肯定又去剁手买买买了~"] }
                ]
            });
        </script>-->
    <!--<script>
            L2Dwidget.init({
                "model": { "jsonPath": "https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json" },
                "display": {
                    "superSample": 2,
                    "width": 200,
                    "height": 400,
                    "position": "right",
                    "hOffset": 0,
                    "vOffset": 0
                },
                dialog: {
                    enable: true,
                    script: {
                        'tap': '哎呀！别碰我！',
                        'tap body': '哎呀！别碰我！',
                        'tap face': '人家是在认真写博客哦',
                    }
                },
                "mobile": { "show": true, scale: 0.5 },
            });
        </script>-->
</body>
</html>
